<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			
			function foo(e)
			{
				//KeyboardEvent对象
				//e 键盘事件对象
				console.log(e);
				console.log(e.ctrlKey);
				console.log(e.shiftKey);
				console.log(e.altKey);
				
				if(e.ctrlKey && e.shiftKey && e.altKey){
					alert("发大财");
				}
				
			}
			
			//document 页面文档对象
			//onkeydown 按下事件
			document.onkeydown = foo;
			
		</script>
	</body>
</html>
